<seed-content>
  <seed-toolbar-header>
    <seed-toolbar-title>招商详情</seed-toolbar-title>
    <seed-toolbar-menu></seed-toolbar-menu>
  </seed-toolbar-header>
  <div class="seed-sponsor-detail" *ngIf="investmentDetail">
    <h3>{{investmentDetail?.sponsorName }}</h3>
    <div class="sponsor-title">
      <p>
        <img [src]="investmentDetail?.iconUrl" seed-load-img
             (click)="gotoHomepage(investmentDetail?.orgId)"
        >
      </p>
      <div class="sponsor-release-time">
        <p>{{investmentDetail?.nickName }}</p>
        <span>{{investmentDetail?.createTime |amDateFormat:'YYYY/MM/DD'}} </span> <span> 发布</span>
      </div>
    </div>
    <div class="sponsor-info">
      <p>
        <span>赛事时间：</span>
        <span class="list-array">{{investmentDetail?.startTime|amDateFormat:'YYYY/MM/DD'}}~{{investmentDetail?.endTime|amDateFormat:'YYYY/MM/DD'}}</span>
      </p>
      <p>
        <span>赛事地点：</span>
        <span class="list-array">{{investmentDetail?.cityName ||'暂无'}}</span>
      </p>
      <p>
        <span>项目类型：</span>
        <span class="list-array">{{investmentDetail?.matchTypeName||'暂无'}}</span>
      </p>
      <p>
        <span>参加人数：</span>
        <span class="list-array">{{investmentDetail?.joinNumber||0}}人</span>
      </p>
    </div>
  </div>
  <div class="investment-detail-clum" *ngIf="investmentDetail">
    <seed-tab (tabSelect)="select($event)">
      <seed-tab-item *ngFor="let tab of tabs" [title]="tab.title">
      </seed-tab-item>
    </seed-tab>
    <div class="investment-ngSwitch-channel">
      <div [class.event-current]="eventClass=='detail'" class="event-hide">
        <div class="seed-detail-detail" *ngIf="eventsDetail?.details">
          <div class="evnet-detail-info" [innerHtml]="eventsDetail?.details">
          </div>
        </div>
        <missing-default-content
          *ngIf="!eventsDetail?.details"
        ></missing-default-content>
      </div>
      <div [class.event-current]="eventClass=='rule'" class="event-hide">
        <seed-investment-project [contactPlan]="contactPlan"></seed-investment-project>
      </div>
      <div [class.event-current]="eventClass=='announce'" class="event-hide">
        <div class="contact-info">
          <p class="contact-detail-info">
            <span>联系人： </span>
            <span>{{contactInfo?.contactPerson }}</span>
          </p>
          <p class="contact-detail-info">
            <span>联系电话： </span>
            <span>{{contactInfo?.contactPhone }}</span>
          </p>
          <p class="contact-detail-info">
            <span>联系邮箱：</span>
            <span>{{contactInfo?.contactEmail }}</span>
          </p>
        </div>
        <missing-default-content
          *ngIf="!contactInfo"
        ></missing-default-content>
      </div>
    </div>
  </div>
  <seed-contact-form
    *ngIf="hasContact==true"
    (closePage)="CloseContact()"
    (submitUp)="Submit(contactInfo)"
    #contactInfo [sponsorId]="sponsorId"
    [orgId]="investmentDetail?.orgId"
    [sponsorType]="0"
  ></seed-contact-form>
</seed-content>
<div class="contact-sponsor-position" [ngClass]="{toggleShow:toggleContact}">
  <div class="contact-now" (click)="Contact()">立即联系</div>
</div>
